Remove environment role assignment

delete/v1/environment/:environmentId/role-assignment
Page View

Access control endpoints allow you to review and manage user role assignments. Organization and environment roles are assigned separately. Furthermore, a user’s organizational role doesn't impact their assigned environment role, and vice versa. Learn about roles.

Generally, organization owners or admins can retrieve, assign, update, or remove role assignments. However, only organization owners can assign or remove organization roles specifically.

Remove environment role assignment

Remove a user's role within the indicated environment. This doesn't remove the user from the related organization.

A user isn't required to have an environment role, but without one, the user doesn't have access to the indicated environment. A user can be reassigned to an environment role later, if needed.

You must be an organization owner or admin to remove user roles.

Request parameters and payload

cURL request example

bash
1
curl 'https://api.redoxengine.com/platform/v1/environment/:environmentId/role-assignment' \
2
--request DELETE \
3
--header 'Authorization: Bearer $API_TOKEN' \
4
--header 'accept: application/json'

Request Body Schema

    Contains the information of the user to remove from the specified environment.

  • user
    object
    • id
      string

      Contains the unique identifier of the user.

    • name
      string

      Contains the user's human-readable name.

Response fields and example

Example payload generated from schema
1
{
2
"meta": {
3
"version": "1.0.0"
4
},
5
"payload": {
6
"success": true
7
}
8
}
  • meta
    object
    • version
      string

      Lists the major and minor version number for the format of the returned payload. The payload format or shape may change between minor versions, like including additional or extended fields in later versions. We include the version data in each response so that you have the option to handle the signaled differences.

  • payload
    object

    Contains the payload with details about the requested environment memberships.

    • success
      boolean

      Displays the status of the request.